﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace FCTC_Web.Models
{
    public class EntityBase
    {
        public EntityBase()
        {
            UpdatedUser = HttpContext.Current.User.Identity.Name;
            UpdateTime = DateTime.Now;
        }
        [Key]
        public int ID { get; set; }
        
        [Display(Name="注释")]
        public virtual string Title { get; set; }

        [Display(Name = "描述")]
        public virtual string Description { get; set; }

        [Display(Name = "编辑时间", AutoGenerateField = false)]
        public DateTime UpdateTime { get; set; }

        [Display(Name = "编辑人", AutoGenerateField = false)]
        public string UpdatedUser { get; set; }

        
        [Display(AutoGenerateField = false)]
        public string State { get; set; }

        [Display(Name = "排序", AutoGenerateField = false)]
        public int? Sequense { get; set; }
    }
}